package com.xbl.test2.api;

import com.xbl.test2.hystrix.Test1RemoteHystrix;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xbl
 * @Description
 * @date 2019/1/27
 */
@FeignClient(name = "spring-cloud-producter",fallback = Test1RemoteHystrix.class)
public interface Test1Remote {

    @RequestMapping(value = "test1/hello",method = RequestMethod.GET)
    String hello(@RequestParam(value = "name") String name);
}
